package cn.hzw.supermarket.domain;


import java.io.Serializable;

/**
 * @Author lwj
 * @Data 2022/05/2022/5/23 11:10
 */

public class OrderHistory implements Serializable {
    /**
     * 历史订单自动增长id
     */
    Integer id;
    /**
     * 商品id
     */
    Integer goodsId;
    /**
     * 用户名
     */
    String userName;
    /**
     * 商品名
     */
    String goodsName;
    /**
     * 商品单价
     */
    Float goodsPrice;
    /**
     * 量词
     */
    String goodsUnit;
    /**
     * 数量
     */
    Integer goodsCount;
    /**
     * 商品图片
     */
    String goodsPicture;
    /**
     * 商品类别
     */
    Integer goodsCategory;
    /**
     * 购买时间
     */
    String orderTime;
    /**
     * 购买数量
     */
    Integer num;
    public OrderHistory(){
        super();
    }

    public OrderHistory(Integer id, Integer goodsId, String userName, String goodsName, Float goodsPrice, String goodsUnit, Integer goodsCount, String goodsPicture, Integer goodsCategory, String orderTime, Integer num) {
        super();
        this.id = id;
        this.goodsId = goodsId;
        this.userName = userName;
        this.goodsName = goodsName;
        this.goodsPrice = goodsPrice;
        this.goodsUnit = goodsUnit;
        this.goodsCount = goodsCount;
        this.goodsPicture = goodsPicture;
        this.goodsCategory = goodsCategory;
        this.orderTime = orderTime;
        this.num = num;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public Float getGoodsPrice() {
        return goodsPrice;
    }

    public void setGoodsPrice(Float goodsPrice) {
        this.goodsPrice = goodsPrice;
    }

    public String getGoodsUnit() {
        return goodsUnit;
    }

    public void setGoodsUnit(String goodsUnit) {
        this.goodsUnit = goodsUnit;
    }

    public Integer getGoodsCount() {
        return goodsCount;
    }

    public void setGoodsCount(Integer goodsCount) {
        this.goodsCount = goodsCount;
    }

    public String getGoodsPicture() {
        return goodsPicture;
    }

    public void setGoodsPicture(String goodsPicture) {
        this.goodsPicture = goodsPicture;
    }

    public Integer getGoodsCategory() {
        return goodsCategory;
    }

    public void setGoodsCategory(Integer goodsCategory) {
        this.goodsCategory = goodsCategory;
    }

    public String getOrderTime() {
        return orderTime;
    }

    public void setOrderTime(String orderTime) {
        this.orderTime = orderTime;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    @Override
    public String toString() {
        return "OrderHistory{" +
                "id=" + id +
                ", goodsId=" + goodsId +
                ", userName='" + userName + '\'' +
                ", goodsName='" + goodsName + '\'' +
                ", goodsPrice=" + goodsPrice +
                ", goodsUnit='" + goodsUnit + '\'' +
                ", goodsCount=" + goodsCount +
                ", goodsPicture='" + goodsPicture + '\'' +
                ", goodsCategory=" + goodsCategory +
                ", orderTime='" + orderTime + '\'' +
                ", num=" + num +
                '}';
    }
}
